package com.biconn.bigdata.es.client.config;/**
 * Created by Administrator on 2018/8/4.
 */

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import com.biconn.bigdata.common.util.JsonUtil;



/**
 * Elasticsearch配置对象
 * botu
 * com.bicon.botu.es
 *
 * @author 123774135@qq.com
 * @create 2018-08-04 18:20
 **/
@Configuration
public class ElasticsearchConfiger implements java.io.Serializable{

    /**   
	 * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么)   
	 */ 
	private static final long serialVersionUID = 6374566255647922966L;
	@Value("${spring.data.elasticsearch.clusterName}")
	private String clusterName;//集群名称
	@Value("${spring.data.elasticsearch.host}")
    private String host;//host
	@Value("${spring.data.elasticsearch.port}")
    private String port;//端口号

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return JsonUtil.objectToJson(this);
    }
}
